<template>
	<view class="text-content ">
		<view class="label" :class="{
			danger:isDanger
		}"> {{label}} </view>
		<view class="content" :class="{
			danger:isDanger
		}">
			<slot>
				{{ content }}
			</slot>
		</view>
	</view>

</template>

<script>
	export default {

		props: {
			label: String,
			content: String,
			isDanger: Boolean,

		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.text {
		&-content {
			display: flex;
			align-items: center;

			&+& {
				margin-top: 24rpx;
			}

			.label {
				min-width: 100rpx;
				font-size: 24rpx;
				font-weight: 400;
				color: rgba(0, 0, 0, 0.6);
			}

			.danger {
				color: red !important;
			}

			.content {

				flex: 1;
				margin-left: 16rpx;
				font-size: 24rpx;
				font-weight: 500;
				color: rgba(0, 0, 0, 0.9);
			}
		}
	}
</style>